from py_stealth import *

_targetValue = 100
_currentSkillValue = 0
while _currentSkillValue < _targetValue:
    _currentSkillValue = GetSkillValue('Spellweaving')
    if TargetPresent():
        CancelWaitTarget()
    if _currentSkillValue < 10:
        CastToObj('Gift of Renewal', Self())
    elif _currentSkillValue < 40:
        Cast('Thunderstorm')
    elif _currentSkillValue < 55:
        Cast('Reaper Form')
    elif _currentSkillValue < 66:
        Cast('Essence of Wind')
    elif _currentSkillValue < 100:
        Cast('Wildfire')
        WaitForTarget(1000)
        TargetToXYZ(GetX(Self()), GetY(Self())+1, 0)
    Wait(3000)
